'use strict';

import {PropTypes} from 'react';
import {requireNativeComponent, View} from 'react-native';

var MapView = {
    name: 'RCTBaiduMap',
    propTypes: {
        markers: PropTypes.array,
        marker: PropTypes.shape({
            latitude: PropTypes.number.isRequired,
            longitude: PropTypes.number.isRequired,
        }),
        search:PropTypes.shape({
            city: PropTypes.string.isRequired,
            district: PropTypes.string.isRequired,
        }),
        ...View.propTypes // include the default view properties
    },
};
module.exports = requireNativeComponent('RCTBaiduMap', MapView);